const express = require('express');

const router = express.Router();

const { addTitle,getTitles,deleteTitle,autoGenerate} = require('../controller/titileCtr')

//增加
router.post('/create',addTitle)
//查询
router.get('/query',getTitles)
//删除
router.get('/del',deleteTitle)
//自动生成
router.get('/autoGenerate',autoGenerate)

module.exports = router;